const moment = require('moment');

module.exports = {
  up: async (queryInterface, Sequelize) => {
    return queryInterface.bulkInsert('comment', [
      {
        id: 1,
        user_id: 1,
        cookbook_id: 1,
        replyid: 2,
        content: '楼主讲的好呀',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 2,
        user_id: 1,
        cookbook_id: 1,
        replyid: 3,
        content: '楼主讲的好呀+1',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 3,
        user_id: 1,
        cookbook_id: 1,
        replyid: 1,
        content: '做的好方便啊',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 4,
        user_id: 1,
        cookbook_id: 2,
        replyid: 14,
        content: '楼主讲的好呀',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 5,
        user_id: 1,
        cookbook_id: 2,
        replyid: 24,
        content: '楼主讲的好呀+1',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 6,
        user_id: 2,
        cookbook_id: 3,
        replyid: 15,
        content: '加油楼楼',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 7,
        user_id: 2,
        cookbook_id: 3,
        replyid: 13,
        content: '楼主大大',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 8,
        user_id: 2,
        cookbook_id: 3,
        replyid: 1,
        content: '可以的呀',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
      {
        id: 9,
        user_id: 2,
        cookbook_id: 3,
        replyid: 18,
        content: '挺好的',
        created_at: moment().format('YYYY-MM-DD HH:mm:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:mm:ss')
      },
    ]);
  },

  down: async (queryInterface, Sequelize) => {
    return queryInterface.bulkDelete('comment', null, {});
  }
};
